﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Collections.ObjectModel;

//==================================================================
// Copyright (C) 2011 深圳市中旭企业管理股份有限公司
// 作 者：xiexiaochun
// Email: 
// 日 期：
// 描 述：
// 版 本：1.0.0.0    
//    
//==================================================================

namespace ZX.Aspose
{
    public class SheetEntity
    {
        /// <summary>
        /// 页ID
        /// </summary>
        private string _sheetID;

        /// <summary>
        /// 页ID
        /// </summary>
        public string SheetID
        {
            get { return _sheetID; }
            set { _sheetID = value; }
        }
        /// <summary>
        /// 页名称
        /// </summary>
        private string _sheetName;
        /// <summary>
        /// 页名称
        /// </summary>
        public string SheetName
        {
            get { return _sheetName; }
            set { _sheetName = value; }
        }
        /// <summary>
        /// 所属文件名称
        /// </summary>
        private string _fileName;
        /// <summary>
        /// 所属文件名称
        /// </summary>
        public string FileName
        {
            get { return _fileName; }
            set { _fileName = value; }
        }
        /// <summary>
        /// 字段集合
        /// </summary>
        private ObservableCollection<FieldEntity> _fieldEntitys = new ObservableCollection<FieldEntity>();
        /// <summary>
        /// 字段集合
        /// </summary>
        public ObservableCollection<FieldEntity> FieldEntitys
        {
            get { return _fieldEntitys; }
            set { _fieldEntitys = value; }
        }
        /// <summary>
        /// 是否包含表头
        /// </summary>
        private int _isContainHeader;
        /// <summary>
        /// 是否包含表头
        /// </summary>
        public int IsContainHeader
        {
            get { return _isContainHeader; }
            set
            {
                if (this._isContainHeader == value)
                {
                    return;
                }
                _isContainHeader = value;

            }
        }
        /// <summary>
        /// 样例数据
        /// </summary>
        private ObservableCollection<ObservableCollection<object>> _sampleData;
        /// <summary>
        /// 样例数据
        /// </summary>
        public ObservableCollection<ObservableCollection<object>> SampleData
        {
            get { return _sampleData; }
            set { _sampleData = value; }
        }
        /// <summary>
        /// 表名
        /// </summary>
        public string TableName
        {
            get;
            set;
        }

        /// <summary>
        /// 记录Excel表的备注：错误或者其他记录
        /// </summary>
        public string Remark
        {
            get;
            set;
        }

    }
}
